import React, { useContext, useEffect } from 'react';
import { Context } from '@/store/context';
import Card from '@/components/Card';
import ConsList from '@/components/List/Tomorrow';

export default function Tomorrow() {
    const {state, dispatch} = useContext(Context);
    // console.log('子页2面里面用state：', state);

    return (
        <div>
            <Card
                name={state.tomorrow.name}
                allIndex={10}
            />
            <ConsList 
                data={state.tomorrow}
            />
        </div>
    )
}